// Decompiled by GOOSIN CO,LTD Copyright 2010 Pavel Kouznetsov.
// home page: http://www.Goosin.net
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   arraySynthesis.java

package include.nseer_cookie;

import java.util.ArrayList;

public class arraySynthesis
{

	public arraySynthesis()
	{
	}

	public String[] getArraySynthesis(String a[], String b[])
	{
		ArrayList c = new ArrayList();
		for (int i = 0; i < a.length; i++)
			c.add(c.size(), a[i]);

		for (int i = 0; i < b.length; i++)
			c.add(c.size(), b[i]);

		ArrayList d = new ArrayList();
		for (int i = 0; i < c.size(); i++)
			if (!d.contains(c.get(i)))
				d.add(c.get(i));

		String f[] = new String[d.size()];
		for (int i = 0; i < d.size(); i++)
			f[i] = (String)d.get(i);

		return f;
	}

	public static void main(String args[])
	{
		String a[] = {
			"a", "b", "c", "d", "e"
		};
		String b[] = {
			"a", "b", "c", "d", "f", "g", "r", "k", "a"
		};
		arraySynthesis demo = new arraySynthesis();
		for (int i = 0; i < demo.getArraySynthesis(a, b).length; i++);
	}
}
